<?php 
include "../../config/ini.php";
include INCLUDES."head.php";
?>
<script type="text/javascript">
var SITE = "<?=SITE?>";

$(document).ready(function() {
	$("#login_form").submit(function(){
		var query = $(this).serialize();
						
		$.ajax({
			url: SITE+"app/Views/V_User.php?f=login&"+query,
			async: false,
			success: function(data){
				var obj =  JSON.decode(data);
				resultMensage(obj, true);

				if(obj[0]){
					var temp =  setTimeout('location.reload();',1000);
				}
			}
		});
		return false;
	});	
});
</script>
<body>
<div id="header">
    <div id="logo">
    <h1 id="header_broomcupboard"><a href="#">Kscrum</a></h1>
    </div>
</div>
<div id="content_login">	
    <form method="get" name="login" class="login_form" id="login_form">
        <fieldset>              	            
		<label for="username">
			<span>Usuário</span>
			<input name="username" id="username" type="text" value=""/>
		</label>
        <label for="password">
			<span>Senha</span>
			<input name="password" id="password" type="password" value=""/>
		</label>
        <div class="container_left button"><div class="button_inner box_circle"><button type="submit"><img src="<?=SITE?>files/images/icons/lock.png" alt=""/>Entrar</button></div></div>                      
        <a href="#" class="forgot_login">Esqueceu sua senha?</a>
        </fieldset>
    </form>
<div class="clear"></div>
</body>
</html>